from telnetlib import DO

import numpy as np
from manim import *
from numpy import flip, insert
import math

LV, QL, QH, JH = '#75cfb8', '#bbdfc8', '#f0e5d8', '#ffc478'


class p1(ThreeDScene):
    def construct(self):
        # self.camera.frame.save_state()
        # self.add(NumberPlane())
        # self.camera.frame.rotate(13*DEGREES,about_point=[0.0, 0.0, 1.0])
        c=Circle().set_color(ORANGE).set_fill(ORANGE,1)
        l=Line(UP/2,ORIGIN).set_color(LIGHT_BROWN).set_stroke(width=20).next_to(c,UP,buff=0)
        l1=Line(ORIGIN,[-1,0.5,0]).set_color(GREEN).next_to(c.get_top(),UL,buff=0)
        t1=Polygon([-1,0.5,0],[-0.8,0.1,0],[-0.4,0,0],[-0.2,0.1,0]).set_color(GREEN).set_fill(GREEN,1).next_to([-1,1.5,0],DR,buff=0)
        vg=VGroup(l1,t1)
        self.play(Create(c))
        self.play(Create(l))
        self.play(Create(l1))
        self.play(Create(t1))
        self.play(Create(vg.copy().rotate(PI,[0,1,0],ORIGIN)))
